/**
 * 全局变量
 */

import { observable, computed, action, makeObservable } from "mobx";

class Store {
  // state
  @observable demo = [];

  constructor() {
    makeObservable(this);
  }

  // getter
  @computed
  get vT() {
    return this.demo;
  }

  // action
  @action
  setVT(payload) {
    this.demo = payload;
  }
}

export default new Store();
